package Service.impl;

import Service.AccountService;
import domain.Account;
import mapper.AccountMapper;

import java.util.List;

/**
 * @author Rain
 * @Description :
 * @date 2022/08/19 19:34
 */
public class AccountServiceImpl implements AccountService {
    AccountMapper am;

    public void setAm(AccountMapper am) {
        this.am = am;
    }

    @Override
    public List<Account> findAll() {
        return am.findAll();
    }

    @Override
    public void addAccount(Account account) {
        am.addAccount(account);
    }

    @Override
    public void removeAccountById(int id) {
        am.removeAccountById(id);
    }

    @Override
    public void updateAccount(Account account) {
        am.updateAccount(account);
    }
}
